<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小测试</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .nav {
            width: 400px;
            height: 30px;
            margin: 20px auto;
            /* background-color: rgba(184, 156, 104, .3); */
        }
        .nav a {
            /* display: inline-block; */
            background: rgba(250, 128, 114, 0.2);
            width: 80px;
            height: 30px;
            background-repeat: no-repeat;
            background-position: center center;
            line-height: 30px;
            font-size: 14px;
            text-align: center;
            
            text-decoration: none;
            color: white;
            /* flex: 1; */
            float: left;
            margin: 0 10px;
            
        }
        .nav .bk1 {
            background-image: url(images/png/1.png);
        }
        .nav .bk2 {
            background-image: url(images/png/2.png);
        }
        .nav .bk3 {
            background-image: url(images/png/3.png);
        }
        .nav .bk4 {
            background-image: url(images/png/4.png);
        }
       
        .nav .bk1:hover {
            background-image: url(images/png/5.png);
            color: red;
        }
        .nav .bk2:hover {
            background-image: url(images/png/6.png);
            color: red;
        }
        .nav .bk3:hover {
            background-image: url(images/png/7.png);
            color: red;
        }
        .nav .bk4:hover {
            background-image: url(images/png/8.png);
            color: red;
        }
    </style>
</head>
<body>
    <div class="nav">
        <a class="bk1" href="#"></a>
        <a class="bk2" href="#"></a>
        <a class="bk3" href="#"></a>
        <a class="bk4" href="#"></a>
    </div>
</body>
</html>